package com.example.rouroudate.ui.widget

import android.view.View
import androidx.viewpager.widget.ViewPager

class ViewPagerTransformer : ViewPager.PageTransformer {
    override fun transformPage(page: View, position: Float) {
        page.pivotX = if (position < 0f) page.width.toFloat() else 0f
        page.pivotY = page.height * 0.5f
        page.rotationY = 90f * position
    }
}
